package dahua_design.model1_02;

import dahua_design.model1_02.Oper.Operation;

/**
 * @ClassName: Client
 * @Description: 客户端  - 简单工厂貌似是
 * @Version: v1.0.0
 * @Author: tamir
 * @Date: 2022/05/31
 * Modification History:
 * Date             Author      Version     Description
 * -------------------------------------------------------------
 * 2022/05/31      tamir        v1.0.0      创建
 */
public class Client {
	public static void main(String[] args) {
		SimpleOperationFactory createOp = new SimpleOperationFactory();
		Operation operation = createOp.getOperation("+");
		operation.setNum1(1);
		operation.setNum2(2);
		System.out.println(operation.getResult());
	}
}
